"""
Template Manager for Configuration Templates

Handles loading and managing configuration templates for different use cases.
"""

from typing import Dict, Any


class TemplateManager:
    """Manages configuration templates"""
    
    def __init__(self):
        self.templates = self._load_default_templates()
    
    def _load_default_templates(self) -> Dict[str, Dict[str, Any]]:
        """Load default configuration templates"""
        return {
            "development": {
                "log_level": "DEBUG",
                "max_workers": 2,
                "backup_enabled": True,
                "validate_syntax": True
            },
            "production": {
                "log_level": "INFO", 
                "max_workers": 4,
                "backup_enabled": True,
                "validate_syntax": False
            }
        }
    
    def get_template(self, name: str) -> Dict[str, Any]:
        """Get configuration template by name"""
        return self.templates.get(name, {})